package com.qianfeng.bob.xiexiaobo.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.qianfeng.bob.xiexiaobo.R;

import alipay.sdk.pay.demo.PayDemoActivity;

/**
 * Created by Bob on 2015/12/16.
 */
public class CartContentFragment extends  BaseFragment {

    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
         View view = inflater.inflate(R.layout.fragment_cartcontent,container,false);
         setListener(view);

        return view ;
    }

    private void setListener(View view) {
        view.findViewById(R.id.bt_cart_test).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), PayDemoActivity.class);
                intent.putExtra("name","超短裙");
                intent.putExtra("describle","超短裙，全世界最漂亮的，秀出你的身材");
                intent.putExtra("totleprice","0.01");

                startActivity(intent);
            }
        });
    }
}
